pub struct XferProtocol {
pub target: Url,
}
Fields§
§target: Url
Expected to be an HTTP url prefix like:
https://host.name:8008
http://127.0.0.1:8000
Implementations§
Source§impl XferProtocol
impl XferProtocol
pub fn is_xfer_queue_name(name: &str) -> bool
pub fn to_queue_name(&self) -> String
pub fn from_queue_name(name: &str) -> Option<Self>
Trait Implementations§
Source§impl Clone for XferProtocol
impl Clone for XferProtocol
Source§fn clone(&self) -> XferProtocol
fn clone(&self) -> XferProtocol
Returns a duplicate 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 moreSource§impl ComposeSchema for XferProtocol
impl ComposeSchema for XferProtocol
Source§impl Debug for XferProtocol
impl Debug for XferProtocol
Source§impl<'de> Deserialize<'de> for XferProtocol
impl<'de> Deserialize<'de> for XferProtocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for XferProtocol
impl Serialize for XferProtocol
Auto Trait Implementations§
impl Freeze for XferProtocol
impl RefUnwindSafe for XferProtocol
impl Send for XferProtocol
impl Sync for XferProtocol
impl Unpin for XferProtocol
impl UnwindSafe for XferProtocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more