pub struct GlobalState { /* private fields */ }Implementations§
Source§impl GlobalState
impl GlobalState
pub fn new() -> Self
pub async fn add_client( &self, client_identifier: &str, sender: Sender<Outgoing>, ) -> Result<AddClientReceipt, Error>
pub fn remove_client<'a>( &self, client_id: ClientId, subscribes: impl IntoIterator<Item = &'a TopicFilter>, )
pub fn subscribe( &self, filter: &TopicFilter, id: ClientId, qos: QualityOfService, )
pub fn unsubscribe(&self, filter: &TopicFilter, id: ClientId)
pub fn get_outgoing_sender( &self, client_id: &ClientId, ) -> Option<Sender<Outgoing>>
pub fn retain_table(&self) -> &RetainTable
pub fn route_table(&self) -> &RouteTable
Trait Implementations§
Source§impl Default for GlobalState
impl Default for GlobalState
Source§fn default() -> GlobalState
fn default() -> GlobalState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for GlobalState
impl !RefUnwindSafe for GlobalState
impl !UnwindSafe for GlobalState
impl Send for GlobalState
impl Sync for GlobalState
impl Unpin for GlobalState
impl UnsafeUnpin for GlobalState
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