Struct rotorlib::Connection [−][src]
pub struct Connection { /* fields omitted */ }
Implementations
impl Connection
[src]
impl Connection
[src]pub fn new() -> Self
[src]
pub fn from_session(session: Session) -> Self
[src]
pub fn get_session(&self) -> Session
[src]
pub async fn set_session(&mut self, session: Session) -> Result<(), ()>
[src]
pub async fn open(&mut self, url: String) -> Result<(), ()>
[src]
pub async fn close(&mut self)
[src]
pub async fn subscribe(&mut self, key: &str) -> Result<(), ()>
[src]
pub async fn unsubscribe(&mut self, key: &str) -> Result<(), ()>
[src]
pub async fn set_node(&mut self, is_node: bool) -> Result<(), ()>
[src]
pub async fn next(&mut self) -> Result<Package, ()>
[src]
pub async fn next_filtered(&mut self) -> Result<Package, ()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,