Struct sf_api::session::ServerConnection
source · pub struct ServerConnection { /* private fields */ }
Implementations§
source§impl ServerConnection
impl ServerConnection
sourcepub fn new(server_url: &str) -> Option<ServerConnection>
pub fn new(server_url: &str) -> Option<ServerConnection>
Creates a new server instance. This basically just makes sure the url is valid and otherwise tries to make it valid
pub fn new_with_options( server_url: &str, options: ConnectionOptions ) -> Option<ServerConnection>
Trait Implementations§
source§impl Clone for ServerConnection
impl Clone for ServerConnection
source§fn clone(&self) -> ServerConnection
fn clone(&self) -> ServerConnection
Returns a copy of the value. Read more
1.0.0 · 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 ServerConnection
impl Send for ServerConnection
impl Sync for ServerConnection
impl Unpin for ServerConnection
impl !UnwindSafe for ServerConnection
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