pub struct Connection {
pub max_payload: usize,
pub address: ConnectionAddress,
}Expand description
A connection object representing an Ogmios server connection.
Fields§
§max_payload: usizeMaximum payload size.
address: ConnectionAddressConnection addresses.
Implementations§
Source§impl Connection
impl Connection
Sourcepub fn from_config(config: &ConnectionConfig) -> Self
pub fn from_config(config: &ConnectionConfig) -> Self
Create a connection object from configuration.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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