Struct cold_iron::net::ThaumStream [−]
pub struct ThaumStream { /* fields omitted */ }
Implementations
impl ThaumStream
impl ThaumStream
pub fn summon(
thaum: impl Thaumatic,
addr: RunicAddress
) -> Result<Self, ThaumError>
pub fn summon(
thaum: impl Thaumatic,
addr: RunicAddress
) -> Result<Self, ThaumError>
Attempt to summon a remote circle. This can fail for any number of reasons, from technical errors to particularly bad lock.
pub fn local_addr(&self) -> Result<RunicAddress, ThaumError>
pub fn local_addr(&self) -> Result<RunicAddress, ThaumError>
The local address we are bound to
pub fn remote_addr(&self) -> Result<RunicAddress, ThaumError>
pub fn remote_addr(&self) -> Result<RunicAddress, ThaumError>
The remove address we resolved
Attempt to write a byte sequence to this stream