pub struct Server<const MAX_ENTRIES: usize = { sd::MAX_SD_ENTRIES }, const MAX_OPTIONS: usize = { sd::MAX_SD_OPTIONS }> { /* private fields */ }Expand description
SOME/IP Server that can offer services and publish events
Implementations§
Source§impl<const E: usize, const O: usize> Server<E, O>
impl<const E: usize, const O: usize> Server<E, O>
Sourcepub async fn new(config: ServerConfig) -> Result<Self, Error>
pub async fn new(config: ServerConfig) -> Result<Self, Error>
Create a new SOME/IP server
Sourcepub fn start_announcing(&self) -> Result<(), Error>
pub fn start_announcing(&self) -> Result<(), Error>
Start announcing the service via Service Discovery
This sends periodic OfferService messages to the SD multicast group
Sourcepub fn publisher(&self) -> Arc<EventPublisher>
pub fn publisher(&self) -> Arc<EventPublisher>
Get the event publisher for sending events
Auto Trait Implementations§
impl<const MAX_ENTRIES: usize, const MAX_OPTIONS: usize> Freeze for Server<MAX_ENTRIES, MAX_OPTIONS>
impl<const MAX_ENTRIES: usize = { sd::MAX_SD_ENTRIES }, const MAX_OPTIONS: usize = { sd::MAX_SD_OPTIONS }> !RefUnwindSafe for Server<MAX_ENTRIES, MAX_OPTIONS>
impl<const MAX_ENTRIES: usize, const MAX_OPTIONS: usize> Send for Server<MAX_ENTRIES, MAX_OPTIONS>
impl<const MAX_ENTRIES: usize, const MAX_OPTIONS: usize> Sync for Server<MAX_ENTRIES, MAX_OPTIONS>
impl<const MAX_ENTRIES: usize, const MAX_OPTIONS: usize> Unpin for Server<MAX_ENTRIES, MAX_OPTIONS>
impl<const MAX_ENTRIES: usize, const MAX_OPTIONS: usize> UnsafeUnpin for Server<MAX_ENTRIES, MAX_OPTIONS>
impl<const MAX_ENTRIES: usize = { sd::MAX_SD_ENTRIES }, const MAX_OPTIONS: usize = { sd::MAX_SD_OPTIONS }> !UnwindSafe for Server<MAX_ENTRIES, MAX_OPTIONS>
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