pub struct BucketBuilder<C> { /* private fields */ }Implementations§
Source§impl<C: LevinCommand> BucketBuilder<C>
impl<C: LevinCommand> BucketBuilder<C>
pub const fn new(protocol: &Protocol) -> Self
pub const fn set_signature(&mut self, sig: u64)
pub const fn set_message_type(&mut self, ty: MessageType)
pub fn set_command(&mut self, command: C)
pub const fn set_return_code(&mut self, code: i32)
pub const fn set_protocol_version(&mut self, version: u32)
pub fn set_body(&mut self, body: Bytes)
pub fn finish(self) -> Bucket<C>
Trait Implementations§
Auto Trait Implementations§
impl<C> !Freeze for BucketBuilder<C>
impl<C> RefUnwindSafe for BucketBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for BucketBuilder<C>where
C: Send,
impl<C> Sync for BucketBuilder<C>where
C: Sync,
impl<C> Unpin for BucketBuilder<C>where
C: Unpin,
impl<C> UnsafeUnpin for BucketBuilder<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for BucketBuilder<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.