pub struct Port(/* private fields */);Expand description
A u16 port number or String port service name as is registered with
/etc/services or equivalent.
use questdb::ingress::Port;
use std::convert::Into;
let service: Port = 9009.into();or
use questdb::ingress::Port;
use std::convert::Into;
// Assuming the service name is registered.
let service: Port = "qdb_ilp".into(); // or with a String too.Trait Implementations§
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
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