pub struct IncomingStreamManager { /* private fields */ }Implementations§
Source§impl IncomingStreamManager
impl IncomingStreamManager
pub fn new( reserved_topics: Vec<String>, ) -> (Self, UnboundedReceiver<(AnyStreamReader, String)>)
Sourcepub fn handle_header(
&self,
header: Header,
identity: String,
encryption_type: Type,
)
pub fn handle_header( &self, header: Header, identity: String, encryption_type: Type, )
Handles an incoming header packet.
Sourcepub fn is_internal(&self, stream_id: &str) -> bool
pub fn is_internal(&self, stream_id: &str) -> bool
Returns whether the given open stream belongs to an internal topic
(e.g. lk.rpc_request). Used to suppress RoomEvent::Stream*Received
dispatches for traffic the SDK handles itself.
Sourcepub fn handle_chunk(&self, chunk: Chunk, encryption_type: Type)
pub fn handle_chunk(&self, chunk: Chunk, encryption_type: Type)
Handles an incoming chunk packet.
Sourcepub fn handle_trailer(&self, trailer: Trailer)
pub fn handle_trailer(&self, trailer: Trailer)
Handles an incoming trailer packet.
Trait Implementations§
Source§impl Clone for IncomingStreamManager
impl Clone for IncomingStreamManager
Source§fn clone(&self) -> IncomingStreamManager
fn clone(&self) -> IncomingStreamManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for IncomingStreamManager
impl !UnwindSafe for IncomingStreamManager
impl Freeze for IncomingStreamManager
impl Send for IncomingStreamManager
impl Sync for IncomingStreamManager
impl Unpin for IncomingStreamManager
impl UnsafeUnpin for IncomingStreamManager
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