Struct cuprate_levin::BucketBuilder
source · pub struct BucketBuilder<C> { /* private fields */ }Implementations§
source§impl<C: LevinCommand> BucketBuilder<C>
impl<C: LevinCommand> BucketBuilder<C>
pub fn new(protocol: &Protocol) -> Self
pub fn set_signature(&mut self, sig: u64)
pub fn set_message_type(&mut self, ty: MessageType)
pub fn set_command(&mut self, command: C)
pub fn set_return_code(&mut self, code: i32)
pub 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> 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§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.