pub struct RelaySpec {
pub represented: MailAddress,
pub represented_name: String,
pub name: String,
pub paths: RelayPaths,
pub program: PathBuf,
}Expand description
Everything needed to start one relay.
Fields§
§represented: MailAddressSession the relay speaks for.
represented_name: StringName the represented session is known by.
name: StringRegistry name the relay registers under.
paths: RelayPathsRelay files.
program: PathBufProgram run by the hooks (this supercode binary).
Implementations§
Source§impl RelaySpec
impl RelaySpec
Sourcepub fn for_sender(
represented: &MailAddress,
represented_name: &str,
) -> Result<Self>
pub fn for_sender( represented: &MailAddress, represented_name: &str, ) -> Result<Self>
The relay that speaks for represented.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelaySpec
impl RefUnwindSafe for RelaySpec
impl Send for RelaySpec
impl Sync for RelaySpec
impl Unpin for RelaySpec
impl UnsafeUnpin for RelaySpec
impl UnwindSafe for RelaySpec
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