pub struct Manager { /* private fields */ }Expand description
Actor that owns all incoming-stream state and processes InputEvents on a single task
(see Self::run). Because it owns its state directly (no shared Mutex), its handlers can
.await decompression on the run-loop task.
Implementations§
Source§impl Manager
impl Manager
pub fn new( max_payload_byte_length: Option<usize>, ) -> (Self, ManagerInput, UnboundedReceiver<OutputEvent>)
Sourcepub async fn run(self)
pub async fn run(self)
Runs the manager’s event loop until the input channel closes (all
ManagerInputs dropped) or InputEvent::Shutdown is received. On exit,
dropping self closes every open reader.
Auto Trait Implementations§
impl !RefUnwindSafe for Manager
impl !UnwindSafe for Manager
impl Freeze for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl UnsafeUnpin for Manager
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