Struct rgb_lib::wallet::TransportEndpoint
source · pub struct TransportEndpoint {
pub endpoint: String,
pub transport_type: TransportType,
}
Expand description
An RGB transport endpoint.
Fields§
§endpoint: String
Endpoint address
transport_type: TransportType
Endpoint transport type
Implementations§
source§impl TransportEndpoint
impl TransportEndpoint
sourcepub fn new(transport_endpoint: String) -> Result<Self, Error>
pub fn new(transport_endpoint: String) -> Result<Self, Error>
Builds a new TransportEndpoint::endpoint
from the provided string, checking that it is
valid.
sourcepub fn transport_type(&self) -> TransportType
pub fn transport_type(&self) -> TransportType
Return the transport type of this transport endpoint.
Trait Implementations§
source§impl Debug for TransportEndpoint
impl Debug for TransportEndpoint
source§impl TryFrom<RgbTransport> for TransportEndpoint
impl TryFrom<RgbTransport> for TransportEndpoint
Auto Trait Implementations§
impl RefUnwindSafe for TransportEndpoint
impl Send for TransportEndpoint
impl Sync for TransportEndpoint
impl Unpin for TransportEndpoint
impl UnwindSafe for TransportEndpoint
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