pub struct ContainerBuffer { /* private fields */ }
Implementations§
Source§impl ContainerBuffer
impl ContainerBuffer
Sourcepub fn push_back(&self, msg: &[u8])
pub fn push_back(&self, msg: &[u8])
Ingests a new message.
If the message is invalid, it is dropped.
Sourcepub fn terminate(&self)
pub fn terminate(&self)
Marks the buffer as terminated which will force all cursors to end and close all sockets. The component’s data will remain in the buffer until the messages are rolled out. This will not drain sockets or close IOBuffers.
Sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Returns true if the container has messages, sockets or IOBuffers.
Sourcepub fn add_socket(&self, socket: Socket)
pub fn add_socket(&self, socket: Socket)
Adds a socket for this container.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContainerBuffer
impl !RefUnwindSafe for ContainerBuffer
impl Send for ContainerBuffer
impl Sync for ContainerBuffer
impl Unpin for ContainerBuffer
impl !UnwindSafe for ContainerBuffer
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T
to [Self
]§impl<T> IntoAny for T
impl<T> IntoAny for T
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